/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sdc.event;

import java.util.List;
import sdc.component.type.ComponentType;
import sdc.net.server.comp.ComponentServer;
import sdc.overlay.InitialOverlayConstructor;

/**
 *
 * @author yokoe
 */
public class OverlayConstructEvent extends Event
{

	private ComponentType componentType;
	private List<ComponentServer> serverList;

	public OverlayConstructEvent(double eventTime, ComponentType componentType, List<ComponentServer> componentServers)
	{
		super(eventTime);
		this.componentType = componentType;
		this.serverList = componentServers;
	}

	@Override
	public void fire()
	{
		for (ComponentServer componentServer : serverList)
		{
			InitialOverlayConstructor.startConstructingOverlay(componentServer, componentType);
		}
	}
}
